
const tabPathList = {

    state: {
        fullPathList:[],
        componentNames:[],//菜单打开组件的name 为了控制路由缓存
    },
    mutations: {
        SET_FULL_PATH: (state, fullPathList) => {
          state.fullPathList = fullPathList
        },
        SET_COMPONENTS_NAME:(state,names)=>{
            state.componentNames = names
        }
    },
    actions: {
        setFullPath({ commit }, fullPathList){
            commit('SET_FULL_PATH',fullPathList)
        },
        setComponentsName({commit},names){
            commit('SET_COMPONENTS_NAME',names)
        }
    }
}
export default tabPathList